package com.nbsaas.boot.controller.web;

import com.nbsaas.boot.thread.TenantContext;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class ReportService {

    @Async("tenantTaskExecutor")
    public void generateReport() {
        String tenantId = TenantContext.getTenant();
        System.out.println("Current tenant: " + tenantId);
        // 执行租户隔离的任务逻辑
    }
}
